#include "test.h"

#include <functional>
#include <iostream>
#include <type_traits>

using namespace std;

void test1_1() {
  [out = std::ref(std::cout << "Result from C code: " << add(1, 2))]() {
    out.get() << ".\n";
  }();
}

void foo(char *) { cout << "foo(char*) is called" << endl; }
void foo(int) { cout << "foo(int) is called" << endl; }

void test1_2() {
  if (std::is_same<decltype(NULL), decltype(0)>::value)
    std::cout << "NULL == 0" << std::endl;
}

int main() {
  // test1_1();
  test1_2();
  return 0;
}